<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

// rbac
Route::rule('/', 'index/Index/index');
Route::rule('admin', 'admin/Index/index');
Route::rule('main', 'admin/Main/index');
Route::rule('login', 'admin/Index/doLogin');
Route::rule('logout', 'admin/Index/logout');

Route::rule('user/user', 'admin/User/index');
Route::rule('user/fenp', 'admin/User/fenp');
Route::rule('user/update', 'admin/User/update');
Route::rule('user/add', 'admin/User/add');
Route::rule('user/zc', 'admin/User/zc');
Route::rule('user/edit', 'admin/User/edit');
Route::rule('user/save', 'admin/User/save');
Route::rule('user/dodel', 'admin/User/delete');

Route::resource('users', 'admin/User');


Route::rule('role/index', 'admin/Role/index');
Route::rule('role/add', 'admin/Role/add');
Route::rule('role/doAdd', 'admin/Role/doAdd');
Route::rule('role/fenp', 'admin/Role/fenp');
Route::rule('role/update', 'admin/Role/update');
Route::rule('role/edit', 'admin/Role/edit');
Route::rule('role/save', 'admin/Role/save');
Route::rule('role/dodel', 'admin/Role/dodel');

Route::rule('node/index', 'admin/Node/index');
Route::rule('node/add', 'admin/Node/add');
Route::rule('node/doAdd', 'admin/Node/doAdd');
Route::rule('node/edit', 'admin/Node/edit');
Route::rule('node/save', 'admin/Node/save');
Route::rule('node/dodel', 'admin/Node/dodel');


// 后台订单
Route::rule('admin/order', 'admin/Order/index');

Route::resource('deal', 'admin/Order');


Route::rule('goods/index', 'admin/Goods/index');
Route::rule('goods/add', 'admin/Goods/add');
Route::rule('goods/doadd', 'admin/Goods/doAdd');
Route::rule('goods/edit', 'admin/Goods/edit');
Route::rule('goods/save', 'admin/Goods/save');
Route::rule('goods/showimg', 'admin/Goods/showimg');
Route::rule('goods/set', 'admin/Goods/set');
Route::rule('goods/addimg', 'admin/Goods/addimg');
Route::rule('goods/doaddimg', 'admin/Goods/doAddImg');
Route::rule('goods/delimg', 'admin/Goods/delimg');
Route::rule('goods/dodel', 'admin/Goods/dodel');
Route::rule('goods/details', 'admin/Goods/details');
Route::rule('goods/room', 'admin/Goods/room');
Route::rule('goods/roomedit', 'admin/Goods/roomedit');
Route::rule('goods/roomeditdo', 'admin/Goods/doedit');
Route::rule('goods/roomdel', 'admin/Goods/roomdel');
Route::rule('goods/roomadd', 'admin/Goods/roomadd');
Route::rule('goods/roomadddo', 'admin/Goods/roomaddDo');

Route::resource('goods', 'admin/Goods');


//后台评价
Route::rule('comment/index', 'admin/Comment/index');


// 前台列表
Route::rule('list', 'index/Index/lists');

Route::rule('xq', 'index/Index/xq');
Route::rule('index/xd', 'index/Index/xd');
Route::rule('index/order', 'index/Index/order');
Route::rule('index/join', 'index/index/join');


Route::rule('index/login', 'index/Index/login');
Route::rule('index/doLogin', 'index/Index/doLogin');
Route::rule('index/logout', 'index/Index/logout');
Route::rule('index/update', 'index/Index/update');
Route::rule('index/doUpdate', 'index/Index/doUpdate');
Route::rule('user/index', 'index/User/index');
Route::rule('user/edit', 'index/User/edit');
Route::rule('user/doEdit', 'index/User/doEdit');


Route::rule('user/order', 'index/User/order');
Route::resource('order', 'index/User');

//验证
Route::rule('yanzheng', 'index/Index/yanzheng');
Route::rule('domail', 'index/Index/doMail');



// 接口
Route::rule('api', 'index/Index/jk');
Route::rule('qq', 'api/Index/index');


// 手机端
Route::rule('app/index', 'app/Index/index');
Route::rule('app/xq', 'app/Index/xq');
Route::rule('app/xd', 'app/Index/xd');
Route::rule('app/order', 'app/Index/order');
Route::rule('app/login', 'app/Index/login');
Route::rule('app/doLogin', 'app/Index/doLogin');
Route::rule('app/logout', 'app/Index/logout');
Route::rule('app/update', 'app/Index/update');
Route::rule('app/doUpdate', 'app/Index/doUpdate');

Route::rule('app/user', 'app/User/index');
// 404 页面
Route::miss('index/miss/index');

return [

];
